package com.wus.system.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @Description: 字典数据编辑请求
 * @Author: wus
 * @Date: 2025/1/6 15:44
 */
@Schema(description = "字典数据编辑请求")
@Data
public class SysDictDataEditReq {

    @Schema(description = "字典类型ID")
    @NotNull(message = "字典类型ID不能为空")
    private Long dictTypeId;

    @Schema(description = "字典数据列表")
    @Valid
    @NotEmpty(message = "字典数据列表不能为空")
    private List<SysDictDataDetailEditReq> detailList;
}
